<template>
	<view>
		<view>
			<view class="box01">
				<view class="box02" @click="geDanHandle">
					<view class="jiantou"></view>
					<view>我的歌单</view>
				</view>
				<view class="shou" @click="handle"></view>
			</view>
			<view v-if="isBox">
				<view class="box001_i">
					<view class="box001_i_left">
						<image src="../../static/fonts/home-active.png"></image>
						<view class="box001_i_center">
							<text class="box001_text">哈哈哈</text>
							<text class="box001_num">0首</text>
						</view>
					</view>
					<view class="box001_i_right" @click="toGeDan"></view>
				</view>
			</view>
			<view class="box01">
				<view class="box02">
					<view class="jiantou02"></view>
					<view>收藏歌单</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data () {
			return {
				num: 16,
				isBox: false
			}
		},
		methods: {
			// 点击跳转到新建歌单页
			handle () {
				uni.navigateTo({
					url: "../new_gedan/new_gedan"
				})
			},
			// 点击显示收藏歌单
			geDanHandle () {
				this.isBox = !this.isBox
			},
			// 点击跳转到歌单详情
			toGeDan () {
				uni.navigateTo({
					url: "../gedan_detail/gedan_detail?id=3"
				})
			}
		}
	}
</script>

<style lang="scss">
	.box01 {
		display: flex;
		height: 108rpx;
		justify-content: space-between;
		align-items: center;
		padding: 0 36rpx;
		border-bottom: 1rpx solid #eee;
		.box02 {
			display: flex;
			align-items: center;
			width: 600rpx;
			height: 100%;
			.jiantou {
				width: 48rpx;
				height: 48rpx;
				background: url(../../static/gedan01.png);
				border: 1rpx dashed #ccc;
				margin-right: 16rpx;
			}
			.jiantou02 {
				width: 48rpx;
				height: 48rpx;
				background: url(../../static/gedan01.png);
				margin-right: 16rpx;
			}
		}
		.shou {
			width: 48rpx;
			height: 48rpx;
			background: url(../../static/tianjiagedan.png);
			border: 1rpx dashed #ccc;
		}
	}
	.box001_i {
		height: 206rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0 34rpx;
		border-bottom: 1rpx solid #eee;
		.box001_i_left {
			display: flex;
			image {
				width: 124rpx;
				height: 124rpx;
				margin-right: 18rpx;
			}
			.box001_i_center {
				display: flex;
				flex-direction: column;
				justify-content: space-around;
				.box001_text {
					width:352rpx;
					height:44rpx;
					font-size:32rpx;
					font-family:PingFangSC-Regular,PingFang SC;
					font-weight:400;
					color:rgba(32,34,46,1);
					line-height:44rpx;
				}
				.box001_num {
					width:42rpx;
					height:36rpx;
					font-size:26rpx;
					font-family:PingFangSC-Regular,PingFang SC;
					font-weight:400;
					color:rgba(166,170,177,1);
					line-height:36rpx;
				}
			}
		}
		.box001_i_right {
			width: 48rpx;
			height: 48rpx;
			background: url(../../static/gedan03.png) no-repeat center;
		}
	}
</style>
